package com.own.business.level.business.service;

import com.own.business.level.business.model.ExpModel;
import com.own.business.level.entity.bo.LevelUserBo;
import com.own.business.level.entity.map.LevelUserMapVo;
import com.own.business.level.entity.po.LevelUser;
import com.own.business.level.entity.query.LevelUserQuery;
import com.own.business.level.entity.vo.LevelUserVo;
import com.own.component.common.base.service.BaseService;

/**
 * LevelUserService
 *
 * @author chenxueli
 * @date 2022-07-25 10:43:00
 */
public interface LevelUserService extends BaseService<
        LevelUser,
        LevelUserBo,
        LevelUserVo,
        LevelUserMapVo,
        LevelUserQuery
        > {

    /**
     * 根据用户id创建用户等级信息
     *
     * @param userId 用户id
     * @return 用户等级信息
     */
    LevelUser buildByUserId(Long userId);

    /**
     * 根据用户id添加用户的经验信息
     *
     * @param userId 用户id
     * @param model  经验模型
     * @return 是否添加成功
     */
    Boolean append(Long userId, ExpModel model);

}
